//
//  KWallProfilePersonCell.m
//  Keping
//
//  Created by apple on 2017/12/12.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "KWallProfilePersonCell.h"

@interface KWallProfilePersonCell()

@property (nonatomic, weak) IBOutlet UIImageView *userImg;
@property (nonatomic, weak) IBOutlet UILabel *userName;
@property (nonatomic, weak) IBOutlet UILabel *userPhone;
@property (nonatomic, weak) IBOutlet UILabel *userSit;

@end

@implementation KWallProfilePersonCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setPartyView:(NSDictionary *)partyView {
    if (!partyView)
        return;
    _partyView = partyView;
    [self.userImg sd_setImageWithURL:[NSURL URLWithString:[KGetImageURL stringByAppendingString:[partyView objectForKey:@"profile"]]] placeholderImage:nil];
    self.userSit.text = [partyView objectForKey:@"nickName"];
    self.userPhone.text = [NSString stringWithFormat:@"Phone: %@ %@",[self.partyView objectForKey:@"prix"],[partyView objectForKey:@"phone"]];
    self.userName.text = [NSString stringWithFormat:@"Name: %@",[partyView objectForKey:@"realName"]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
